<!-- 单列 -->
<?php
if(!empty($output['goods_list']) && is_array($output['goods_list'])){
?>
<div class="layout background">
    <div class="container">
        <ul class="list-media margin-top">
            <?php foreach($output['goods_list'] as $item){?>
            <li class="x12 bg-white radius-big padding">
                <div>
                    <a url="index.php?act=goods&goods_id=<?php echo $item['goods_id'];?>" class="x4 float-left" onClick="pclicked(this);"><img class="img-responsive self-motion" src="<?php echo SiteUrl.DS.ATTACH_GOODS.DS.$item['store_id'].DS.$item['goods_image'];?>" onerror="this.src='<?php echo TEMPLATES_PATH;?>/images/touch2013/no_100_100.jpg'"></a>
                    <ul class="x8 float-right list-unstyle padding-small-left">
                        <li class="width"><?php echo $item['goods_name']?></li>
                        <li class="zt_color"><strong><?php if($_SESSION['is_login'] != 1){?>
                                    登录后显示
                                <?php }else{?>
                                    &yen;
                                    <?php
                                    if($item['group_flag']==0 && $item['xianshi_flag']==0){
                                        echo $item['goods_store_price'];
                                    }else if($item['group_flag']==1 && $item['xianshi_flag']==0){
                                        echo $item['group_price'];
                                    }else if($item['group_flag']==0 && $item['xianshi_flag']==1){
                                        echo ncPriceFormat($item['goods_store_price']*($item['xianshi_discount']/10));
                                    }else if($item['group_flag']==1 && $item['xianshi_flag']==1){
                                        if($item['group_price'] < ($item['goods_store_price']*($item['xianshi_discount']/10))){
                                            echo $item['group_price'];
                                        }else{
                                            echo ncPriceFormat($item['goods_store_price']*($item['xianshi_discount']/10));
                                        }
                                    }
                                    ?>
                                <?php }?></strong></li>
                        <li><strong>已售出 <?php echo $item['salenum']?> 件</strong></li>
                    </ul>
                </div>

            </li>
            <?php }?>
        </ul>
    </div><!--container-->
</div>
<?php }else{?>
    <ul> <li class="noTxt">
            <div class="text-center text-gray padding-large">
                <i class="icon-meh-o"></i>
                <p>暂无相关的数据记录。</p>
            </div>
        </li></ul>
<?php }?>